﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WUC_UpFile.ascx.cs" Inherits="UControls_WUC_UpFile" %>
<style type="text/css">
.uploading{position: absolute; left: 0px; top: 0px; width:300px; height:200px; text-align:center; display:none;}
</style>

<table border="0" style="text-align:left;">
	<tr>
		<td>
			<asp:Literal ID="lil_title" runat="server" Text="图片："></asp:Literal>
			<asp:TextBox ID="txt_ServerPath" runat="server" Width="215px"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td>
			<asp:FileUpload ID="fup_up" runat="server" />
			<asp:Button ID="btn_up" runat="server" Text="上传" OnClick="btn_up_Click" OnClientClick="uploading();" />
		</td>
	</tr>
</table>

<div id="ul_1" class="uploading" style="background-color:#ACCCFD; filter: Alpha(Opacity=80, FinishOpacity=100);"></div>
<div id="ul_2" class="uploading" style="padding-top:30px; color:red;">文件上传中...<br/><img src="../images/uploading.gif"/></div>
<script type="text/javascript">
function uploading()
{
	document.getElementById('ul_1').style.display = 'block';
	document.getElementById('ul_2').style.display = 'block';
}
</script>